<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/* connect.php */ 
$host = "localhost";
$port = "5432";
$data = "EIS";
$user = "postgres"; //usuario de postgres
$pass = "eis"; //password de usuario de postgres
 
$conn_string = "host=". $host . " port=" . $port . " dbname=" . $data . " user=" . $user . " password=" . $pass;
 
$dbconn = pg_connect($conn_string) or die;

//validar la conexión
if(!$dbconn) {
    echo "Error al conectar a la Base de datos\n";
    exit;
}
else
   // echo "<strong>Conectado.</strong>";

?>
